package com.jic.point.api;

import com.jic.point.common.Result;
import com.jic.point.rest.request.Audit;
import com.jic.point.rest.request.Rights;
import com.jic.point.rest.request.RightsNo;
import com.jic.point.rest.response.RightsResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @ClassName RightsAndInterestsAudit
 * TODO
 * @Description 权益接口
 * @Author chenhongfeng
 * @Date 2020/11/25 17:03
 * @Version 1.0
 **/
@FeignClient(name = "jic-point", path = "/api/point/rights")
@Api(tags = " [权益接口]")
public interface RightsAndInterestsAuditAPi {
    /**
     * 根据权益编码审核通过权益
     *活动删除接口，删除一个处于新建状态(未经审批)的活动
     * @param rights
     * @return
     */
    @PostMapping("/delete")
    @ApiOperation(value = " 活动删除接口，删除一个处于新建状态(未经审批)的活动")
    Result<Integer> deleteNewActivity(@RequestBody  Rights rights);

    /**
     * 根据权益编码审核通过权益
     *审核活动
     * @param audit
     * @return
     */
    @PostMapping("/auditActivity")
    @ApiOperation(value = " 审核活动")
    Result<Integer> auditActivity(@RequestBody  Audit audit);

    /**
     * 权益活动配置-权益提交
     *新增/修改购机权益配置
     * @param rightsNo
     * @return
     */
    @PostMapping("/saveOrUpdate")
    @ApiOperation(value = " 新增/修改购机权益配置")
   Result<RightsResponse> saveOrUpdate(@RequestBody RightsNo rightsNo);



}
